<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
div{
    width : 200px;
    height : 200px;
    background-color : pink;
    
}
</style>
</head>
<body>
<div id="box"></div>
<script>
box.ondblclick = function (){
    console.log("你双击了这个 div");
}
box.onclick = function (){
    console.log("单击");
}
</script>
</body>
</html>